# -*- coding:utf-8 -*-
# 返回多个变量
# 一个变量名接收多个变量，结果是一个元组
# def func1():
#     return 100, 200, 300
#
# num = func1()
# print(num)

# 拆包
# result1, result2, result3 = 100, 200, 300
# result1, result2, result3 = (100, 200, 300)
# result1, result2, result3 = [100, 200, 300]
# result1, result2, result3 = {100, 200, 300}
# print(result1)
# print(result2)
# print(result3)

# 返回一个列表
def func2():
    list_num = []
    for data in range(1, 100):
        list_num.append(data)
    return list_num

print(func2())
